<template>
  <h3>Father 组件 --- {{ num }}</h3>
  <button @click="num++">+1</button>
  <hr />

  <Son :num :flag="true" intro="abc" :read-more="readMoreFn" article-type="军事" title="hello" />
</template>

<script setup>
import Son from './Son.vue'
import { Author } from './propTypes'
import { ref } from 'vue'

const authorObj = new Author('zs', 20)
const readMoreFn = () => {
  console.log('ok')
  // npm i vue@latest
}

const num = ref(0)
</script>
